package com.zxl.entity;

import com.zxl.utils.DateFormatUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * (Emp)实体类
 *
 * @author makejava
 * @since 2021-05-19 19:39:48
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp implements Serializable {
    private static final long serialVersionUID = -69596140485791056L;

    private Integer eno;

    private String ename;

    private String esex;

    private Object salary;

    private String pwd;

    private Integer dno;

    private Date borndate;

    private String borndateStr;

    private Dept dept;

    public Date getBorndate() {
        return borndate;
    }

    public void setBorndate(Date borndate) {
        this.borndate = borndate;
        this.borndateStr = DateFormatUtils.dateToStr(this.borndate);
    }
}